Optimizing Active Database transactions Using an Extended Multiversion Concurrency Control Protocol
نویسندگان
چکیده
We study the problem of eeciently evaluating transactions that automatically invoke the execution of (deferred) database triggers at the end of the transaction. In particular, we consider an important class of triggers which may express arbitrary integrity constraints and alerters. Their event part speciies data modiications, their condition part is an arbitrary database query, and their action part can raise some alerts, issue a rollback, or \repair" the data modiication that triggered the rule. An update transaction that invokes such deferred trigger(s) reads (and locks) new database items before committing. These read operations may entail inter-transactions blockings, thereby degrading the performance of active database applications. We propose a slight extension of the classical multiversion two phase locking (MV2PL) protocol whereby these reads access versions and do not take locks. We prove the correctness of this protocol, and show that its implementation requires very few changes to classical implementations of MV2PL. Finally, a careful performance evaluation conducted with a simulator, shows the beneets of our protocol compared to a two phase locking protocol. Un Contr^ ole de Concurrence Multiversion pour Optimiser les Performances des Transactions dans un SGBD Actif R esum e : Dans les bases de donn ees actives, les transactions peuvent d eclencher et ex ecuter des triggers. Dans cet article, nous consid erons une classe importante de triggers qui permettent d'exprimer des contraintes d'int egrit es g en erales. Ces triggers sont d eclench es par les modiications des donn ees, leur condition est une requ^ ete arbitraire sur la base, et leur action peut d eclencher un alerteur, entra^ ner l'abandon de la transaction ou compenser certaines des modiications de la transaction qui ont d eclench e le trigger. Une transaction qui d eclenche de tels triggers en mode dii er e lit et verrouille des donn ees suppl ementaires avant de valider (ou d'^ etre abandon-n ee). Ceci peut causer des bloquages entre transactions et d egrader les performances. Nous proposons une l eg ere extension du contr^ ole de concurrence multiversion clas-sique (MV2PL) qui permet a ces lectures d'acc eder des versions sans verrouiller les donn ees. Nous prouvons la correction de notre algorithme et nous montrons qu'il peut ^ etre realis e facilement a partir d'un MV2PL existant. Finalement, une etude par simulation montre les apports de notre algorithme par rapport a un protocole de verrouillage a deux-phases.
منابع مشابه
Alternative Correctness Criteria for Multiversion Concurrency Control and a Locking Protocol via Freezing
Concurrency control protocols based on multiversions have been used in some commercial transaction processing systems in order to provide the serializable executions of transactions. In the existing protocols, transactions are allowed to read only the most recent version of each data item in order to ensure the correct execution of transactions. However, this feature is not desirable in some ad...
متن کاملMultiversion Repeatable Read Isolation Level – Theory and Practice
Concurrency control is the activity of synchronizing database operations by concurrently executing transactions on a shared database. We examine the problem of concurrency control when the database supports multiple versions of the data. Multiversion concurrency control is used in order to improve the level of achievable concurrency. The goal is to produce an execution that has the same effect ...
متن کاملReal-time Multiversion Repeatable Read Isolation Level
Concurrency control is the activity of synchronizing database operations by concurrently executing transactions on a shared database. We examine the problem of concurrency control when the database supports multiple versions of the data. Multiversion concurrency control is used in order to improve the level of achievable concurrency. The goal is to produce an execution that has the same effect ...
متن کاملMultiversion Locking Protocol with Freezing for Secure Real-Time Database Systems
Database systems for real-time applications must satisfy timing constraints associated with transactions. Typically, a timing constraint is expressed in the form of a deadline and is represented as a priority to be used by schedulers. Recently, security has become another important issue in many real-time applications. In many systems, sensitive information is shared by multiple users with diff...
متن کاملAnalysis of Real-Time Multi version Concurrency Control Algorithms using Serialisability Graphs
57 ABSTRACT This paper analyses the correctness of Multiversion Concurrency Control(MVCC) algorithms that are commonly deployed in Realtime Databases. Database systems for real-time applications must satisfy timing constraints associated with transactions. Typically, a timing constraint is expressed in the form of a deadline and is represented as a priority to be used by schedulers. MVCC Algori...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1995